/*

	eCry - CRYSIS MOD - InfinityTutorials.com
	
	You may not re-use, distribute or take ownership of this file. All rights reserved.
	
*/

eMain(){}

eGetDvar( dvar, def, type )
{
	if( isDefined( dvar ) )
	{
		if( GetDvar( dvar ) != "" )
		{
			if( !type )
				return GetDvarInt( dvar );
			else if( type )
				return GetDvar( dvar );
			else if( type > 1 )
				return GetDvarFloat( dvar );
		}
		else
			return def;
	}
	else
		return def;
}

eGameSetup()
{
	level.eCrySettings = [];
	
	level.eCrySettings["MOTD"] = eGetDvar( "sv_motd", "Welcome to Crysis", 1 );
}